package com.youmingxing.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.youmingxing.R;

/**
 * Author : 李雄
 * Date : 2016/4/5 0005
 * Email: LiXiong0713@163.com
 * Description :
 */
public class CouponsView extends RelativeLayout {
    public TextView tv_name;
    public TextView tv_description;
    public Button btn_change;
    public TextView tv_intro;

    public CouponsView(Context context) {
        super(context);
        initView();
    }
    public CouponsView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
    public CouponsView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    private void initView() {
        // 将自定义好的布局文件设置给当前的SettingItemView
        View.inflate(getContext(), R.layout.view_item_coupons, this);
        tv_name = (TextView) findViewById(R.id.tv_name);
        tv_description = (TextView) findViewById(R.id.tv_description);
        btn_change = (Button) findViewById(R.id.btn_change);
        tv_intro = (TextView) findViewById(R.id.tv_intro);
    }
}
